package tech.aistar.day05.homework;

import java.util.Date;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2022/7/25 9:07 上午
 */
public class SalesEmployee extends Employee{
    //月销售额、提成率
    private double sales;

    private double rank;

    public SalesEmployee() {
    }

    public SalesEmployee(String name, Date birthday, double sales, double rank) {
        super(name, birthday);
        this.sales = sales;
        this.rank = rank;
    }

    @Override
    public double getSalary(int month) {
        return super.getSalary(month)+sales*rank;
    }
}
